package cn.wen.yinxiu.works.dao;

import cn.wen.yinxiu.works.entity.UsersCollectRelationEntity;
import cn.wen.yinxiu.works.recommend.UserTopic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @ClassName: UsersCollectRelationDao
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-21 22:19:26
 * @Description:
 */
@Component
@Mapper
public interface UsersCollectRelationDao extends BaseMapper<UsersCollectRelationEntity> {

    /**
     * 获取最近20天Topic的数量
     * @param userId
     * @param pastDate
     * @param status
     * @param isDeleted
     * @return
     */
    List<UserTopic> queryUserCollectTopicByDate(@Param("userId") Long userId,
                                                @Param("pastDate") String pastDate,
                                                @Param("status") Integer status,
                                                @Param("isDeleted") Integer isDeleted);
}
